package com.lee.rabbitmq.controller;

import com.lee.rabbitmq.service.SendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;


/**
 * 发送消息
 *
 * @author Lee
 * @createDate 2021/12/17 11:37
 */
@Controller
public class SendController {
    @Autowired
    SendService sendService;

    @RequestMapping("/send")
    @ResponseBody
    public void send() {
        sendService.sendTopicMessage("springboot集成rabbitmq,topic测试消息-aa.bb.cc");
    }

}
